package com.atguigu.java4;

public class ThisTest {
		public static void main(String[] args) {
				Person b = new Person();
				b.setAge(20);
				b.setName("Tom");
		}
}


class Person{
		private int  age;
		private String name;
		
		public Person(){
				this.getName();
		}
	
		public void setAge(int age){
				this.age = age;
		}
	
		public int getAge(){
				return age;
		}
	
		public void setName(String name){
				this.name = name;
		}

		public String getName(){
				return name;
		}
}